package com.base.service.impl;

import com.base.mapper.voipmapper.apiauthorMapper;
import com.base.po.voip.apiauthor;
import com.base.po.voip.apiauthorExample;
import com.base.service.ApiauthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ApiauthorService")
public class ApiauthorServiceImpl implements ApiauthorService {

    @Autowired
    apiauthorMapper apiauthorMapperd;

    @Override
    public int countByExample(apiauthorExample example) {
        return apiauthorMapperd.countByExample(example);
    }

    @Override
    public int deleteByExample(apiauthorExample example) {
        return apiauthorMapperd.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return apiauthorMapperd.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(apiauthor record) {
        return apiauthorMapperd.insert(record);
    }

    @Override
    public int insertSelective(apiauthor record) {
        return apiauthorMapperd.insertSelective(record);
    }

    @Override
    public List<apiauthor> selectByExample(apiauthorExample example) {
        return apiauthorMapperd.selectByExample(example);
    }

    @Override
    public apiauthor selectByPrimaryKey(Integer id) {
        return apiauthorMapperd.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(apiauthor record, apiauthorExample example) {
        return apiauthorMapperd.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(apiauthor record, apiauthorExample example) {
        return apiauthorMapperd.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(apiauthor record) {
        return apiauthorMapperd.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(apiauthor record) {
        return apiauthorMapperd.updateByPrimaryKey(record);
    }

    @Override
    public apiauthor getUserByApiAutor(String appkey) {
        return apiauthorMapperd.getUserByApiAutor(appkey);
    }
}
